package com.sogeti.mentormatch.aop;

import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.List;

/**
 * @author Matthew L. Maurer <maurer.it@gmail.com>
 */
public interface QueryFinderExecutor<T>
{
    /**
     * Execute a finder method with the appropriate arguments
     */
    List<T> executeQueryFinder ( Method method, Object[ ] queryArgs );

    Iterator<T> iterateQueryFinder ( Method method, Object[ ] queryArgs );
}
